/*
**************************************************************************************
*Myriad Engine                                                                       *
*Copyright (C) 2006-2007, 5d Studios (www.5d-Studios.com)                            *
*                                                                                    *
*This library is free software; you can redistribute it and/or                       *
*modify it under the terms of the GNU Lesser General Public                          *
*License as published by the Free Software Foundation; either                        *
*version 2.1 of the License, or (at your option) any later version.                  *
*                                                                                    *
*This library is distributed in the hope that it will be useful,                     *
*but WITHOUT ANY WARRANTY; without even the implied warranty of                      *
*MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                   *
*Lesser General Public License for more details.                                     *
*                                                                                    *
*You should have received a copy of the GNU Lesser General Public                    *
*License along with this library; if not, write to the Free Software                 *
*Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA      *
**************************************************************************************
*/
package leola.frontend.events;

import leola.frontend.listener.Event;

/**
 * @author Tony
 *
 */
public class SyntaxErrorEvent extends Event {

    private int lineNumber;
    private int position;
    private String tokenText;
    private String errorMessage;
	/**
	 * @param source
	 * @param lineNumber
	 * @param position
	 * @param tokenText
	 * @param errorMessage
	 */
	public SyntaxErrorEvent(Object source, int lineNumber, int position,
			String tokenText, String errorMessage) {
		super(source);
		this.lineNumber = lineNumber;
		this.position = position;
		this.tokenText = tokenText;
		this.errorMessage = errorMessage;
	}
	/**
	 * @return the lineNumber
	 */
	public int getLineNumber() {
		return lineNumber;
	}
	/**
	 * @param lineNumber the lineNumber to set
	 */
	public void setLineNumber(int lineNumber) {
		this.lineNumber = lineNumber;
	}
	/**
	 * @return the position
	 */
	public int getPosition() {
		return position;
	}
	/**
	 * @param position the position to set
	 */
	public void setPosition(int position) {
		this.position = position;
	}
	/**
	 * @return the tokenText
	 */
	public String getTokenText() {
		return tokenText;
	}
	/**
	 * @param tokenText the tokenText to set
	 */
	public void setTokenText(String tokenText) {
		this.tokenText = tokenText;
	}
	/**
	 * @return the errorMessage
	 */
	public String getErrorMessage() {
		return errorMessage;
	}
	/**
	 * @param errorMessage the errorMessage to set
	 */
	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}
    
    
}
